package net.maku.events.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.v3.oas.annotations.media.Schema;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;

import net.maku.framework.common.utils.DateUtils;
import net.maku.system.entity.SysOrgEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 健步走活动
 *
 * @author 阿沐 babamu@126.com
 * @since 1.0.0 2025-03-22
 */
@Data
@Schema(description = "健步走活动")
public class ActivityBriskWalkVO extends ActivityBaseJoinVO implements Serializable, TransPojo {
    private static final long serialVersionUID = 1L;

    @Trans(type = TransType.SIMPLE, target = SysOrgEntity.class, fields = "name", ref = "orgName")
    private Long orgId;

    @Schema(description = "主办单位")
    private String orgName;

    @Schema(description = "参与组织范围")
    private List<Long> joinOrgId;

    @Schema(description = "参与组织范围名称")
    private List<String> joinOrgName;

    @Schema(description = "活动标题")
    private String activityTitle;

    @Schema(description = "健步走背景图")
    private String activityBgImage;

    @Schema(description = "站点背景")
    private String siteBgImage;

    @Schema(description = "健步走Banner图")
    private String activityBanner;

    @Schema(description = "活动规则")
    private String activityRule;

    @Schema(description = "活动开始时间")
    @DateTimeFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date activityStartTime;

    @Schema(description = "活动结束时间")
    @DateTimeFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date activityEndTime;

    @Schema(description = "兑换比例-步数")
    private Integer exchangeStepNumber;

    @Schema(description = "兑换比例-积分")
    private Double exchangePoints;

    @Schema(description = "每日封顶")
    private Integer dailyCapping;

    @Schema(description = "功能面板")
    private List<Integer> functionPanel;

    @Schema(description = "功能面板关联的活动")
    private List<ActivityBriskWalkFeatureVO> activityBriskWalkFeatureList;

    @Schema(description = "发布状态  0：停用   1：正常")
    private Integer status;

    @Schema(description = "租户ID")
    private Long tenantId;

    @Schema(description = "参与职工人数")
    private int participantsNumber;

    @Schema(description = "累计步数")
    private int cumulativeSteps;

    @Schema(description = "累计公里数")
    private double kilometres;

    @Schema(description = "累计消耗卡路里")
    private double cumulativeCaloriesBurned;

    @Schema(description = "获得积分")
    private double totalPoints;

    @Schema(description = "浏览人数")
    private Integer viewNumber;

    @Schema(description = "小程序二维码")
    private String wxShareQr;

    @Schema(description = "积分阶梯")
    private List<ActivityBriskWalkPointsLadderVO> activityBriskWalkPointsLadderList;

    @Schema(description = "活动状态")
    private Integer activityStatus;

    @Schema(description = "今日步数")
    private int todaySteps;

    @Schema(description = "今日里程")
    private double todayKilometres;

    @Schema(description = "今日卡路里")
    private double todayCumulativeCaloriesBurned;

    @Schema(description = "置顶图片")
    private String topImg;

    @Schema(description = "个人累计步数")
    private int selfCumulativeSteps;

    @Schema(description = "个人累计公里数")
    private double selfKilometres;
}